﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.ServiceModel;
using UploadWcfService;
using System.Configuration;
using iSun.Entity;
using ZX.Common.IPTC;
using System.Windows.Forms;

namespace iSun.App
{
    class Program
    {
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            UserInfo.UserName = ConfigurationManager.AppSettings["UserName"];
            UserInfo.MachineName = SystemInfo.Get_HostName();
            //Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            Application.Run(new MainFrom());
        }

        static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {

        }

        
    }

    public static class UserInfo
    {
        public static string UserName
        {
            get;
            set;
        }

        public static string MachineName
        {
            get;
            set;
        }

        public static string CurrentVendor_id
        {
            get;
            set;
        }

        public static Guid CurrentProductID
        {
            get;
            set;
        }
    }
}
